//
//  GuessLoveTableViewCell.m
//  NewMusic
//
//  Created by dllo on 15/11/12.
//  Copyright © 2015年 Going. All rights reserved.
//

#import "GuessLoveTableViewCell.h"

@implementation GuessLoveTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        [self creatSubView];
    }
    return self;
}
- (void)creatSubView
{
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 375, 54)];
    view.backgroundColor = [UIColor whiteColor];
    view.alpha = 0.05;
    [self.contentView addSubview:view];
    [view release];
    
    UILabel *labelText = [[UILabel alloc] initWithFrame:CGRectMake(15, 2, 100, 30)];
    labelText.text = @"心情音乐";
    labelText.textColor = [UIColor whiteColor];
    labelText.font = [UIFont boldSystemFontOfSize:18.0];
    [self.contentView addSubview:labelText];
    [labelText release];
    
    UILabel *labelDetail = [[UILabel alloc] initWithFrame:CGRectMake(15, 34, 150, 14)];
    labelDetail.text = @"听你心情的音乐";
    labelDetail.textColor = [UIColor colorWithRed:180 / 255.0 green:200 / 255.0 blue:180 / 255.0 alpha:180 / 255.0];
    labelDetail.font = [UIFont systemFontOfSize:14];
    [self.contentView addSubview:labelDetail];
    [labelDetail release];
    
    UIView *viewOne = [[UIView alloc] initWithFrame:CGRectMake(310, 7, 40, 40)];
    viewOne.layer.borderColor = [UIColor colorWithRed:150 / 255.0 green:150 / 255.0 blue:150 / 255.0 alpha:1.0].CGColor;
    viewOne.layer.borderWidth = 0.7;
    viewOne.backgroundColor = [UIColor colorWithRed:28 / 255.0 green:38 / 255.0 blue:49 / 255.0 alpha:1.0];
    [self.contentView addSubview:viewOne];
    [viewOne release];
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 30, 30)];
    imageView.image = [UIImage imageNamed:@"icon_bofang2"];
    [viewOne addSubview:imageView];
    [imageView release];

    UIView *viewTwo = [[UIView alloc] initWithFrame:CGRectMake(349, 10, 5, 34)];
    viewTwo.layer.borderColor = [UIColor colorWithRed:150 / 255.0 green:150 / 255.0 blue:150 / 255.0 alpha:1.0].CGColor;
    viewTwo.layer.borderWidth = 0.7;
    viewTwo.backgroundColor = [UIColor colorWithRed:28 / 255.0 green:38 / 255.0 blue:49 / 255.0 alpha:1.0];
    [self.contentView addSubview:viewTwo];
    [viewTwo release];
    
    UIView *viewThree = [[UIView alloc] initWithFrame:CGRectMake(353, 13, 5, 28)];
    viewThree.layer.borderColor = [UIColor colorWithRed:150 / 255.0 green:150 / 255.0 blue:150 / 255.0 alpha:1.0].CGColor;
    viewThree.layer.borderWidth = 0.7;
    viewThree.backgroundColor = [UIColor colorWithRed:28 / 255.0 green:38 / 255.0 blue:49 / 255.0 alpha:1.0];
    [self.contentView addSubview:viewThree];
    [viewThree release];

}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
